package com.zyzd.general.module.drawabletest;

import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.ImageView;

import com.zyzd.general.R;
import com.zyzd.retrofit.base.BaseFragment;

import butterknife.BindView;

/**
 * Created by lzy on 2018/11/9 0009.
 * description ${测试drawableFragment}
 */
public class DrawableTestFragment extends BaseFragment {
    @BindView(R.id.iv_tian)
    ImageView mIvTian;
    @Override
    protected int getLayoutId() {
        return R.layout.fragment_test_drawable;
    }

    @Override
    protected void initData() {
        mIvTian.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    }

    /**
     * 虚线不现实解决方案有两种：
     * 1、在代码中解决：view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);把这句加点相应的代码中；
     * 2、在 AndroidManifest.xml中解决，android:hardwareAccelerated="false" 加点相应的Activity处即可
     */
    public static Fragment getInstance() {
        return new DrawableTestFragment();
    }
}
